package org.jsola.hr.provider.impl;

import org.jsola.admin.query.SiteQuery;
import org.jsola.admin.service.ISiteService;
import org.jsola.admin.vo.SiteListVO;
import org.jsola.admin.vo.SiteVO;
import org.jsola.hr.provider.ISiteProviderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wxz
 */
@Service("hrSiteProviderService")
public class SiteProviderServiceImpl implements ISiteProviderService {

    @Autowired
    private ISiteService siteService;

    @Override
    public List<SiteListVO> select() {
        SiteQuery siteQuery = new SiteQuery();
        return siteService.select(siteQuery, null);
    }

    @Override
    public SiteVO selectById(String currSiteId, String siteId) {
        return siteService.selectById(currSiteId, siteId);
    }
}
